package com.tanhua.dubbo.api.db;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.domain.db.QuizBook;
import com.tanhua.dubbo.mapper.QuizBookMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class QuizBookApiImpl implements QuizBookApi {

    @Autowired
    private QuizBookMapper quizBookMapper;

    /**
     * 查询问卷列表
     * @return
     */
    @Override
    public List<QuizBook> queryQuizBook() {
        QueryWrapper query = new QueryWrapper();

        List<QuizBook> list = quizBookMapper.selectList(query);
        return list;
    }
}
